package org.javaboy.sms_login.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.javaboy.sms_login.model.SendSmsLog;

import java.util.Date;
import java.util.List;

@Mapper
public interface SendSmsLogMapper {
    void save(SendSmsLog sendSmsLog);

    void updateStatus(@Param("msgId") String msgId, @Param("status") int status);

    List<SendSmsLog> getSmsLog(@Param("status") int status, @Param("nowTime") Date nowTime);

    void updateCount(@Param("msgId") Integer msgId, @Param("count") int count);
}
